package com.zpark.resume.service;

import com.zpark.resume.entity.Education;
import com.zpark.resume.entity.Recommend;
import com.zpark.resume.exception.DeleteEducationLoseException;
import com.zpark.resume.exception.InsertEducationLoseException;
import com.zpark.resume.exception.UpdateEducationLoseException;

import java.util.List;

/**
 * @PackageName: com.zpark.resume.service
 * @ClassName: IEducationService
 * @Description:教育经历表业务层接口
 * @author: RZS
 * @date: 2023/6/1  17:50
 */
public interface IEducationService {

    /**
     * 根据cv的id查询数据
     * @param cvId
     * @return
     */
    List<Education> findByCvId(Integer cvId);

    // 添加教育经历
    Integer addEducation(Education education) throws InsertEducationLoseException;

    // 修改教育经历
    Integer changeEducationById(Education education) throws UpdateEducationLoseException;

    // 删除教育经历
    Integer removeEducationById(Integer id) throws DeleteEducationLoseException;
}
